package cn.rgb.orm.config;

import java.util.HashMap;
import java.util.Map;

public class SqlMapConfig {

	protected Map<String, String> dsConfig = new HashMap<String, String>();
	protected Map<String, SqlMapping> sqlMapings  = new HashMap<String, SqlMapping>();
	
	public SqlMapping getSqlMapping(String namespace) {
		return sqlMapings.get(namespace);
	}
	
	public void addSqlMapping(SqlMapping sqlMapping) {
		this.sqlMapings.put(sqlMapping.getNamespace(), sqlMapping);
	}
	
	public void putDsInfo(String key, String value) {
		this.dsConfig.put(key, value);
	}
	
	public Map<String, String> getDsInfo() {
		return this.dsConfig;
	}
}
